home *** CD-ROM | disk | FTP | other *** search
- # we have 8 major numbers, 48-55
- $numdevs{$name} = 256*8; $stddevs{$name} = "^(rd/c[01].*)\$";
-
- $generate{$name} = sub {
- mkdir "rd", 0755;
- &$MkNod ("disk",
- sprintf("rd/c%dd%d%s",
- $i>>8, # one controller == one major
- ($i&0xff)>>3, # one disk == upper 5 bits of minor
- ($i&7)?sprintf("p%d",$i&7):""), # partition == lower 3 bits
- "b", 48+($i>>8), $i&0xff);
- };
-